using MediatR;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Writh.Command.ContentManagement
{
    /// <summary>
    /// 修改医院
    /// </summary>
    public class UpdateHospitalCommand : IRequest<APIResult<object>>
    {
        /// <summary>
        /// 医院ID
        /// </summary>
        [Required]
        public long Id { get; set; }

        /// <summary>
        /// 医院名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string? Name { get; set; }

        /// <summary>
        /// 医院等级
        /// </summary>
        [StringLength(20)]
        public string? Level { get; set; }

        /// <summary>
        /// 医院地址
        /// </summary>
        [Required]
        [StringLength(255)]
        public string? Address { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(20)]
        public string? Phone { get; set; }

        /// <summary>
        /// 医院介绍
        /// </summary>
        public string? Introduction { get; set; }

        /// <summary>
        /// 封面图片路径
        /// </summary>
        [StringLength(512)]
        public string? CoverImageUrl { get; set; }

        /// <summary>
        /// 状态：0-禁用，1-启用
        /// </summary>
        [Required]
        public bool Status { get; set; }
        /// <summary>
        /// 医生数量
        /// </summary>
        public int DoctorNumber { get; set; }
        /// <summary>
        /// 科室数量
        /// </summary>
        public int DepartmentsNumber { get; set; }
        /// <summary>
        /// 科室ID
        /// </summary>
        public long DepartmentsId { get; set; }
    }
}